package cn.com.shbs.Dao.Customer;

import cn.com.shbs.model.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface CustomerDao {
    /**
     * 添加客户表
     * @param customer
     * @throws Exception
     */
    public void addcustomer(Customer customer) throws Exception;

    /**
     * 查询符合条件的总条数
     * @param map
     * @return
     * @throws Exception
     */
    public int queryCustomerNum(HashMap<String,Object> map) throws Exception;


    /**
     * 查询符合条件的顾客
     * @param map
     * @return
     * @throws Exception
     */
    public List<HashMap> queryCustomer(HashMap<String,Object> map) throws Exception;

    /**
     * 修改客户信息
     * @param customer
     * @throws Exception
     */
    public void updateCustomer(Customer customer) throws Exception;

    //根据顾客code查询顾客信息
    public HashMap<String,Object> queryCustomerByCode(HashMap<String,Object> map) throws Exception;
}
